package day30ver2;

public class Bank  {
	
	
	 int money= 100;
	String name;
	
	synchronized public void setMoney(int m){
		try{
			Thread.sleep(10);
		
		}catch(Exception ex){
			
		}
	this.money +=m;
	System.out.println(this.money);
	}
}
	